package com.colorlight.cloud.complete.entity.po;

import com.colorlight.cloud.gateway.api.annotation.percent;
import com.colorlight.cloud.gateway.api.message.constraint.basics.object.Trans;
import com.colorlight.iot.proto.complete.entity.CompleteEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ExternalVoltage implements Trans<ExternalVoltage, CompleteEntity.ExternalVoltage> {

    /**
     * 外部电压序号(从0开始)
     */
    private Integer index;

    /**
     * 外部电压值, 后3位作为小数点后的值
     */
    @percent
    private Float value;

}

